#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <qdebug.h>

#include "clibraryprivate.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    OnInitDialog();
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::OnInitDialog()
{
    CLibraryPrivate *_ptr = GetObj();
    Q_ASSERT(_ptr);
    qDebug()<<"def_add: "<<_ptr->def_add(33,22)<<"\r\n";
    _ptr->ReleaseObj();
}
